{template 'member', 'header'}
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}member_common.js"></script>
<script type="text/javascript" src="{JS_PATH}formvalidator.js"
	charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}formvalidatorregex.js"
	charset="UTF-8"></script>
<div id="memberArea">
	<div class="col-auto">
		<div class="col-1 ">
			<h6 class="title">向作者{$memberinfoc['username']}发邮件</h6>
			<div class="content">
				<form name="myform"
					action="{APP_PATH}index.php?m=member&c=index&a=sendemail_author"
					method="post" id="myform">
					<input type="hidden" name="email" id="email" value="{$memberinfoc['email']}"/>
					<table width="100%" cellspacing="0" class="table_form">
						<tr>
							<th>{L('subject')}：</th>
							<td><input name="title" type="text" id="title"
								size="80" class="input-text" /> <span
								id="msgid1"></span></td>
						</tr>

						<tr>
							<th>{L('email_contents')}：</th>
							<td><textarea name="usernote" id="usernote" rows="15"
									cols="100" value=></textarea></td>
						</tr>
						<tr>
							<th>{L('checkcode')}：</th>
							<td><input name="code" type="text" id="code" size="10"
								class="input-text" />
								{form::checkcode('code_img','4','14',110,30)}</td>
						</tr>
						<tr>
							<td></td>
							<td colspan="2"><label> <input type="submit"
									name="dosubmit" id="dosubmit" value="确 定" class="button" />
							</label></td>
						</tr>
					</table>
				</form>
			</div>
			<span class="o1"></span><span class="o2"></span><span class="o3"></span><span
				class="o4"></span>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#title").formValidator({onshow:"{L('input').L('subject')}",onfocus:"{L('subject').L('between_2_to_100')}"}).inputValidator({min:2,max:100,onerror:"{L('subject').L('between_2_to_100')}"});
	$("#usernote").formValidator({onshow:"{L('input').L('email_contents')}"}).inputValidator({min:1,max:100,onerror:"{L('email_contents').L('between_2_to_100')}"});
});
</script>
{template 'member', 'footer'}
